home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / include / ds3100.md / machparam.h < prev    next >
C/C++ Source or Header  |  1991-10-17  |  2KB  |  78 lines

  1. /*
  2.  * machparam.h --
  3.  *
  4.  *    This file contains various machine-dependent parameters needed
  5.  *    by UNIX programs running under Sprite.  This file includes parts
  6.  *    of the UNIX header files "machine/machparm.h" and
  7.  *    "machine/endian.h".  Many of things in the UNIX file are only
  8.  *    useful for the kernel;  stuff gets added to this file only
  9.  *    when it's clear that it is needed for user programs.
  10.  *
  11.  * Copyright (C) 1989 by Digital Equipment Corporation, Maynard MA
  12.  *
  13.  *            All Rights Reserved
  14.  *
  15.  * Permission to use, copy, modify, and distribute this software and its 
  16.  * documentation for any purpose and without fee is hereby granted, 
  17.  * provided that the above copyright notice appear in all copies and that
  18.  * both that copyright notice and this permission notice appear in 
  19.  * supporting documentation, and that the name of Digital not be
  20.  * used in advertising or publicity pertaining to distribution of the
  21.  * software without specific, written prior permission.  
  22.  *
  23.  * Digitial disclaims all warranties with regard to this software, including
  24.  * all implied warranties of merchantability and fitness.  In no event shall
  25.  * Digital be liable for any special, indirect or consequential damages or
  26.  * any damages whatsoever resulting from loss of use, data or profits,
  27.  * whether in an action of contract, negligence or other tortious action,
  28.  * arising out of or in connection with the use or performance of this
  29.  * software.
  30.  *
  31.  * $Header: /sprite/src/lib/include/ds3100.md/RCS/machparam.h,v 1.2 91/07/25 12:12:22 mendel Exp $ SPRITE (Berkeley)
  32.  */
  33.  
  34. #ifndef _MACHPARAM
  35. #define _MACHPARAM
  36.  
  37. #ifndef _LIMITS
  38. #include <machine/limits.h>
  39. #endif
  40.  
  41. /*
  42.  *----------------------
  43.  * Taken from endian.h:
  44.  *----------------------
  45.  */
  46.  
  47. /*
  48.  * Definitions for byte order,
  49.  * according to byte significance from low address to high.
  50.  */
  51. #define LITTLE_ENDIAN   1234    /* least-significant byte first (vax) */
  52. #define BIG_ENDIAN      4321    /* most-significant byte first (IBM, net) */
  53. #define PDP_ENDIAN      3412    /* LSB first in word, MSW first in long (pdp) */
  54.  
  55. #define BYTE_ORDER      LITTLE_ENDIAN   /* byte order on vax */
  56.  
  57. /*
  58.  *----------------------
  59.  * Miscellaneous:
  60.  *----------------------
  61.  */
  62.  
  63. /*
  64.  * The bits of a address that should not be set if word loads and stores
  65.  * are done on the address. This mask intended for fast byte manipulation
  66.  * routines.
  67.  */
  68.  
  69. #define    WORD_ALIGN_MASK    0x3
  70.  
  71. /*
  72.  * Size of a page.
  73.  */
  74.  
  75. #define PAGSIZ 0x1000
  76.  
  77. #endif _MACHPARAM
  78.